<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>转会申请</title>
<link rel="stylesheet" type="text/css" href="../../css/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../css/themes/icon.css" />
<script type="text/javascript" src="../../js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../../js/jquery.form.js"></script>
<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/ListData.js"></script>
<script type="text/javascript">
	$.fn.datebox.defaults.formatter = function(date) {
		var y = date.getFullYear();
		var m = date.getMonth() + 1;
		m = m < 10 ? "0" + m : m;
		var d = date.getDate();
		d = d < 10 ? "0" + d : d;
		return y + '-' + m + '-' + d;
	}
	$.fn.combo.defaults.panelHeight = 200;
	$(function() {
		$.get("../../view/loginmember", {}, function(data) {
			$("#memberID").val(data.id);
			$("#sourceUnion").val(data.workUnit);
		});
		$('#member_info').submit(function() {
			$(this).ajaxSubmit({
				clearForm : true,
				beforeSerialize : function(form, option) {
				},
				beforeSubmit : function(formDatas, form, option) {
				},
				success : function() {
					alert("提交成功！");
					window.top.location.reload();
				}
			});
			return false;
		});

	})
</script>
<style type="text/css">
body {
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 100%;
}

form {
	font-size: 13px;
	font-weight: 400;
}
</style>
</head>
<body style="margin: 0">
	<form id="member_info" name="member_info" method="post" action="../../member/changeunion">
		<table>
			<tr>
				<td nowrap="nowrap" width="100" align="right">转入工作单位：</td>
				<td nowrap="nowrap" width="200" align="left" colspan="3"><input id="targetUnion" name="targetUnion" class="easyui-combotree" data-options="multiple:false,url:'../../view/unitcombo'" style="width: 400px;"></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">转会原因：</td>
				<td colspan="3" align="left"><textarea name="reason" id="reason" cols="50" rows="1"></textarea></td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<button id="submit" name="submit" type="submit">申请转会</button>
				</td>
			</tr>
		</table>
		<input name="memberID" id="memberID" type="hidden" /> <input name="sourceUnion" id="sourceUnion" type="hidden" />
	</form>

</body>
</html>